package com.aloha.test.service.impl;

import com.aloha.test.mapper.IUserMapper;
import com.aloha.test.po.User;
import com.aloha.test.service.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author DaiZhiHeng
 * @date 2023/7/13 22:52
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private IUserMapper userMapper;

    @Override
    @Transactional
    public void insert(User user) {
        userMapper.insert(user);
    }

    @Override
    public User queryByUid(String uid) {
        return null;
    }

    @Override
    public void insertDB(User user) {

    }
}
